import 'package:get/get.dart';

import '../pages/playlist/play_list_page.dart';
import '/app/app_page.dart';
import '/app/pages/file/folder_list_page.dart';
import '/app/pages/home/index.dart';
import '/app/pages/home/video_list_page.dart';
import '/app/pages/search/search_page.dart';
import '/app/pages/settings/settings_page.dart';
import '/app/pages/webview/webview_page.dart';

class AppPages {
  static const INITIAL = APPPAGE;
  static const APPPAGE = '/appPage';
  static const HOME = '/home';
  static const video_list = '/video_list';

  static const SETTINGS = '/settings';
  static const SEARCH = '/search'; // 新增的搜索页面路径
  static const webView = '/webView'; // 新增的搜索页面路径
  static const webView2 = '/webView2'; // 新增的搜索页面路径
  static const testPage = '/testPage'; // 新增的搜索页面路径
  static const VideoFolderList = '/VideoFolderListPage'; // 新增的搜索页面路径

  static const video_playlist = '/video_playlist'; // 播放列表


  static const play_list_page = '/play_list_page'; // 播放列表




  static final routes = [
    GetPage(
      name: APPPAGE,
      page: () => AppPage(),
    ),
    GetPage(
      name: VideoFolderList,
      page: () => VideoFolderListPage(),
    ),
    GetPage(
      name: HOME,
      page: () => HomePage(),
    ),

    GetPage(
      name: play_list_page,
      page: () => PlaylistPage(),
    ),
    GetPage(
      name: video_list,
      page: () => VideoListPage(),
    ),
    GetPage(
      name: SETTINGS,
      page: () => SettingsPage(),
    ),
    GetPage(
      name: SEARCH, // 新增的路由
      page: () => SearchPage(),
    ),
    GetPage(
      name: webView, // 新增的路由
      page: () => WebViewPage(),
    ),
    GetPage(
      name: testPage,
      page: () => WebViewPage(),
    ),

    // GetPage(
    //   name: video_playlist,
    //   page: () => VideoPlaylistPage(),
    // ),
  ];
}
